package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author stylefeng
 * @since 2018-11-19
 */
@TableName("SYS_DICT")
public class Dict extends Model<Dict> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId("ID")
    private Long id;
    /**
     * 排序
     */
    @TableField("D_NUM")
    private Long dNum;
    /**
     * 父级字典
     */
    @TableField("D_PID")
    private Long dPid;
    /**
     * 名称
     */
    @TableField("D_NAME")
    private String dName;
    /**
     * 提示
     */
    @TableField("D_TIPS")
    private String dTips;
    /**
     * 值
     */
    @TableField("D_CODE")
    private String dCode;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getdNum() {
        return dNum;
    }

    public void setdNum(Long dNum) {
        this.dNum = dNum;
    }

    public Long getdPid() {
        return dPid;
    }

    public void setdPid(Long dPid) {
        this.dPid = dPid;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getdTips() {
        return dTips;
    }

    public void setdTips(String dTips) {
        this.dTips = dTips;
    }

    public String getdCode() {
        return dCode;
    }

    public void setdCode(String dCode) {
        this.dCode = dCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Dict{" +
        ", id=" + id +
        ", dNum=" + dNum +
        ", dPid=" + dPid +
        ", dName=" + dName +
        ", dTips=" + dTips +
        ", dCode=" + dCode +
        "}";
    }
}
